package com.yinxin.jvm;

/**
 * @author yinxin
 * @version 1.0
 * @Description:
 * @date 2023/3/617:57
 */
public class A {
    private String name="";
    private Integer age=0;
    private Boolean isMan=false;

    static {
        System.out.println("enter static method");
    }
    public A() {
        System.out.println("enter method");
    }
    public A(String name, Integer age, Boolean isMan) {
        this.name = name;
        this.age = age;
        this.isMan = isMan;
    }
    public String getName() {
        return name;
    }
    public void setName(String name) {
        this.name = name;
    }
    public Integer getAge() {
        return age;
    }
    public void setAge(Integer age) {
        System.out.println("enter setAge");
        this.age = age;
    }
    public Boolean getMan() {
        return isMan;
    }
    public void setMan(Boolean man) {
        isMan = man;
    }
    @Override
    public String toString() {
        return "A{" +
                "name='" + name + '\'' +
                ", age=" + age +
                ", isMan=" + isMan +
                '}';
    }

    public static void main(String[] args) {
        A a = new A();
        a.setAge(11);
    }
}
